<!-- 头部 -->
<div class="layui-header">
    <div class="layui-logo">
        <img src="/resource/layadmin/assets/images/logo.png"/>
        <cite>{{.Config.setting.title}}</cite>
    </div>
    <ul class="layui-nav layui-layout-left">
        <li class="layui-nav-item" lay-unselect>
            <a ew-event="flexible" title="侧边伸缩"><i class="layui-icon layui-icon-shrink-right"></i></a>
        </li>
        <li class="layui-nav-item" lay-unselect>
            <a ew-event="refresh" title="刷新"><i class="layui-icon layui-icon-refresh-3"></i></a>
        </li>
    </ul>
    <ul class="layui-nav layui-layout-right">
        <!--        <li class="layui-nav-item" lay-unselect>-->
        <!--            <a ew-event="message" title="消息">-->
        <!--                <i class="layui-icon layui-icon-notice"></i>-->
        <!--                <span class="layui-badge-dot"></span>-->
        <!--            </a>-->
        <!--        </li>-->
        <li class="layui-nav-item" lay-unselect>
            <a ew-event="note" title="便签" data-url="index/note"><i class="layui-icon layui-icon-note"></i></a>
        </li>
        <li class="layui-nav-item layui-hide-xs" lay-unselect>
            <a ew-event="fullScreen" title="全屏"><i class="layui-icon layui-icon-screen-full"></i></a>
        </li>
        <!--        <li class="layui-nav-item layui-hide-xs" lay-unselect>-->
        <!--            <a ew-event="lockScreen" title="锁屏"><i class="layui-icon layui-icon-password"></i></a>-->
        <!--        </li>-->
        <li class="layui-nav-item" lay-unselect>
            <a>
                {{if eq .Context.User.AvatarUrl ""}}
                <img src="/resource/layadmin/assets/images/head.jpg" class="layui-nav-img" alt="">
                {{else}}
                <img src="/resource/{{.Context.User.AvatarUrl}}" class="layui-nav-img" alt=""/>
                {{end}}

                <cite>{{.Context.User.Username}}</cite>
            </a>
            <dl class="layui-nav-child">
                <dd lay-unselect>
                    <a id="viewInfo">个人信息</a>
                </dd>
                <dd lay-unselect>
                    <a id="setPsw">修改密码</a>
                </dd>
                <hr>
                <dd lay-unselect><a id="btnLogout">退出</a></dd>
            </dl>
        </li>
        <li class="layui-nav-item" lay-unselect>
            <a ew-event="theme" title="主题" data-url="index/theme"><i
                    class="layui-icon layui-icon-more-vertical"></i></a>
        </li>
    </ul>
</div>